package dj.engine.screen;

import java.util.Collection;

import dj.engine.events.EventReceiver;
import dj.engine.panel.Panel;
import dj.engine.util.Vec2i;


public abstract class Screen extends EventReceiver {
	protected Collection<Panel> onScreenPanels;
	protected Vec2i size;
	protected LayoutManager layout;
	public abstract boolean isTransparent();
	
	@Override
	public void onResize(Vec2i newSize)
	{
		size = newSize;
		layout.onResize(newSize);
	}
	
	protected int getWidth()
	{
		return size.x;
	}
	
	protected int getHeight()
	{
		return size.y;
	}
	
	
}
